﻿using Service.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service.EntityConFig
{
    class SettingEntityConFig:EntityTypeConfiguration<SettingEntity>
    {
       public SettingEntityConFig()
        {
            ToTable("T_Settings");
            Property(p => p.Name).IsRequired().HasMaxLength(1024).IsUnicode(false);
            Property(p => p.Value).IsRequired().HasMaxLength(1024).IsUnicode(false);
        }
    }
}
